package com.yu.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yu.crm.domain.pojo.CrmSearchPoint;
import com.yu.crm.domain.pojo.CrmSearchRoute;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 巡更路线 服务类
 * </p>
 *
 * @author neo
 * @since 2020-07-22
 */
public interface ICrmSearchRouteService extends IService<CrmSearchRoute> {

    /**
     * 新增或修改线路信息
     * @param crmSearchRoute
     */
    void addOrUpdate(CrmSearchRoute crmSearchRoute);

    /**
     * 查询路线的详细分页信息
     * @param page
     * @return
     */


    IPage<CrmSearchRoute> pageAll(Page<CrmSearchRoute> page);

    /**
     * 根据线路id 查询线路巡更点集合
     * @param routeId
     * @return
     */

    List<CrmSearchPoint> listByRouteId(Long routeId);

}
